package com.qf.controller;

import com.qf.pojo.respVo.BaseResp;
import com.qf.service.LiveUserService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


/**
 * @Author: 陌人不故
 * @Date: 2022/10/26/0:49
 */
@RequestMapping("/base")
@RestController
public class BaseUserController {

    @Autowired
    LiveUserService liveUserService;

    @RequestMapping("/findUserByToken")
    public BaseResp findUserByToken(HttpServletRequest request){
        return liveUserService.findUserByToken(request);
    }
}
